package priv.wangy.micro.common.po.http.rspn.code;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhangjq
 * @since 2023-10-24
 */
@Getter
@AllArgsConstructor
public enum SysErrorEnum implements IHttpRspnEnum {
    /**
     * 系统错误响应码
     */
    INTERNAL_SYSTEM_ERROR("000001", "系统内部错误"),
    INVALID_REQUEST_DATA("000002", "无效的请求数据"),
    EXTERNAL_API_REQ_FAILED("000003", "外部接口请求失败"),
    INTERNAL_API_REQ_FAILED("000004", "内部接口请求失败"),
    OBJECT_NOT_FOUND("000005", "未找到目标对象"),
    DATABASE_OPR_FAILED("000006", "数据库操作失败"),
    UNSUPPORTED_OPR_REQUEST("000007", "不支持的操作请求"),
    DN_LOCK_NOT_OBTAINED("000008", "未获取到分布式锁"),
    BIZ_NAME_ERROR("000009", "重复不可用"),
    NOT_ALLOWED_DISABLE("000010", "不可禁用"),
    REJECT_WITH_REASON("000011", "缺失驳回理由"),
    NO_APPROVED_DATA_FOUND("000012", "未找到审核通过的记录"),
    HAS_RELATION("000013", "存在关联数据无法操作"),
    TIME_CONFLICT("000014", "存在时间冲突"),
    MISSING_THIS_TERM_INFO("000015", "缺失当前学期信息"),
    TOO_MANY("000016", "请求过于频繁");

    private final String rspnCode;

    private final String rspnMsg;
}
